From a1596350209cc0b89bbc6c7f92dc5be604ac4e8f Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 4 Jul 2014 02:01:53 -0400 Subject: [PATCH] GdkScreen: Set reasonable limis for ::resolution Otherwise, the spinbutton in the inspectors property editor explodes in order to make room for MAXDOUBLE. --- gdk/gdkscreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/gdkscreen.c b/gdk/gdkscreen.c index a1ae7e722a..e2cbfb7d0d 100644 --- a/gdk/gdkscreen.c +++ b/gdk/gdkscreen.c @@ -98,8 +98,8 @@ gdk_screen_class_init (GdkScreenClass *klass) g_param_spec_double ("resolution", P_("Font resolution"), P_("The resolution for fonts on the screen"), - -G_MAXDOUBLE, - G_MAXDOUBLE, + -1.0, + 10000.0, -1.0, G_PARAM_READWRITE|G_PARAM_STATIC_NAME| G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); -- 2.30.2